package com.woniuxy.commentmodel.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("回复评论参数列表")
public class ReplyForm {
    @ApiModelProperty("回复评论内容")
    @NotBlank(message = "回复内容不能为空")
    private String reply;
    @ApiModelProperty("所回复评论id")
    @NotNull(message = "评论id不能为空")
    @Min(1)
    private Integer commentId;
}
